home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1998 January / PC Answers Issue 49 Cover CD January 1998.iso / Apps / Director / DATA.Z / Synchronized Media.dir / Standard Elements_2_Initialize Standard Movie Handlers.ls < prev    next >
Encoding:
Text File  |  1997-05-10  |  782 b   |  45 lines

  1. on openWindow
  2.   if the windowType of the activeWindow <> 4 then
  3.     set the windowType of the activeWindow to 4
  4.     set the title of the activeWindow to the movieName
  5.   end if
  6. end
  7.  
  8. on closeWindow
  9.   puppetSound(1, 0)
  10.   puppetSound(2, 0)
  11.   if count(the windowList) < 2 then
  12.     clearGlobals()
  13.   end if
  14.   forget(the activeWindow)
  15. end
  16.  
  17. on activateWindow
  18.   continue()
  19. end
  20.  
  21. on deactivateWindow
  22.   pause()
  23. end
  24.  
  25. on initStandardElements
  26.   global gMaxChannels, gSynchMediaButtonPropertyList
  27.   set gMaxChannels to 48
  28.   if not voidp(gSynchMediaButtonPropertyList) then
  29.     nothing()
  30.   else
  31.     BuildButtonPropertyList([])
  32.     set gSynchMediaButtonPropertyList to the result
  33.   end if
  34. end
  35.  
  36. on stopMovie
  37.   sound stop 1
  38.   sound stop 2
  39.   forget(the activeWindow)
  40. end
  41.  
  42. on idle
  43.   doRollOverCheck()
  44. end
  45.